<?php
/**
 * SPARQL_Array
 *
 * @package converters
 * @author Keith
 **/
class SPARQL_Array extends ConvertableObject
{
	/**
	 * is_valid
	 *
	 * @return boolean
	 * @author Keith
	 **/
	function is_valid($value=false)
	{
		if(!$value) $value = $this->value;
		
		if(
			!isset($value['head']) OR 
			(!isset($value['results']) AND !isset($value['boolean']) )
			) return false;
		else return true;		
	}
} // END class SPARQL_Array
?>